import {INCREMENT,DECREMENT} from './content'

export function incrementAction(data){
  return {type:INCREMENT,data}
}
export const decrementAction = (data)=>{
    return {type:DECREMENT,data}
  }

export const incrementAsyncAction = (data) => {
  return (dispatch) =>{
    setTimeout(()=>{
      dispatch(incrementAction(data))
    },1000)
  }
}